package edu.sctu.xialei.May.day20150515two;

/**
 * Created by Administrator on 2015/5/15 0015.
 */
public class InputValueAndOutput {

    public static void main(String[] args) {

        DatasOfDog dog1 = new DatasOfDog();

        dog1.setName("小明");
        dog1.setColor("黑色");
        dog1.setWeight((float) 30.55);
        dog1.setOwner("夏磊");

        DatasOfDog dog2 = new DatasOfDog();

        dog2.setName("小花");
        dog2.setColor("白色");
        dog2.setWeight((float) 26.7);
        dog2.setOwner("隔壁老曹");

        DatasOfPepole pepole1 = new DatasOfPepole();

        pepole1.weight = (float) 111.7;
        pepole1.name = "明宏源";
        pepole1.color = "黄色";

        DatasOfPepole pepole2 = new DatasOfPepole();

        pepole2.weight = (float) 115.99;
        pepole2.name = "贺兰瑾辰";
        pepole2.color = "黄色";


        ToPrintPepoleOrDog printings = new ToPrintPepoleOrDog();

        printings.printing(dog1.name,dog1.color,dog1.weight,dog1.owner);
        printings.printing(dog2.name,dog2.color,dog2.weight,dog2.owner);

        printings.printing(pepole1.name,pepole1.color,pepole1.weight);
        printings.printing(pepole2.name,pepole2.color,pepole2.weight);

    }
}
